package com.ssd.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssd.entity.TaskType;
import com.ssd.mapper.TaskTypeMapper;
import com.ssd.service.TaskTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TaskTypeServiceImpl 类
 *
 * @title:
 * @requirement:
 * @ClassName:
 * @author:首雯静
 * @creationTime:2024/12/19/19:02
 * @version: 1.0
 */
@Service
public class TaskTypeServiceImpl extends ServiceImpl<TaskTypeMapper, TaskType> implements TaskTypeService {


    @Override
    public List<TaskType> getList(Integer type) {
        QueryWrapper<TaskType> qw = Wrappers.query();
        qw.eq("type",type);
        List<TaskType> list = this.list(qw);
        return list;
    }
}
